package com.mp.approvalreq.entity;

import java.util.Objects;

/**
 *  新的红点实体类字段
 */
public class NewRedPoint {
    /**
     *  type = 0 : 首页红点
     *  type = 1 : 待我处理的
     *  type = 2 : 我已处理的
     *  type = 3 : 我申请待处理
     *  type = 4 : 我申请已处理
     *  type = 5 : 我参与待处理
     *  type = 6 : 我参与已处理
     *  type = 7 : 待我归档
     *  type = 8 : 我已归档
     */
    private String type;
    private int bigRed;       // 大红点
    private int smallRed;     // 小红点
	
	public NewRedPoint() {
	}

	public NewRedPoint(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}
	
	public void setType(String type) {
		this.type = type;
	}
	
	public int getBigRed() {
		return bigRed;
	}
	
	public void setBigRed(int bigRed) {
		this.bigRed = bigRed;
	}
	
	public int getSmallRed() {
		return smallRed;
	}
	
	public void setSmallRed(int smallRed) {
		this.smallRed = smallRed;
	}
	
	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		NewRedPoint that = (NewRedPoint) o;
		return bigRed == that.bigRed &&
				smallRed == that.smallRed &&
				Objects.equals(type, that.type);
	}
	
	@Override
	public int hashCode() {
		return Objects.hash(type, bigRed, smallRed);
	}
	
	@Override
	public String toString() {
		return "NewRedPoint{" +
				"type='" + type + '\'' +
				", bigRed=" + bigRed +
				", smallRed=" + smallRed +
				'}';
	}
}
